package org.blogwu.learn.designpattern.chapter18.v2;

public class Main {

    public static void main(String[] args) {
//        PromotionActivity promotionActivity618 = new PromotionActivity(new LiJianPromotion());
//        PromotionActivity promotionActivity11 = new PromotionActivity(new FanXianPromotion());
//
//        promotionActivity11.executePromotion();
//        promotionActivity618.executePromotion();
//
        PromotionActivity promotionActivity = new PromotionActivity(PromotionFactory.promotionMap.get("fanxian"));
        promotionActivity.executePromotion();

    }
}
